package com.teaching.teachingsupport.common.pojo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

/*
    @通知消息
 */
@Data
@TableName("notification")
public class Notification {
    @TableId(type = IdType.AUTO)
    private Long notificationId;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("title")
    private String title;
    
    @TableField("content")
    private String content;
    
    @TableField("type")
    private String type;
    
    @TableField("related_link")
    private String relatedLink;
    
    @TableField("created_time")
    private LocalDateTime createdTime;
    
    @TableField("is_read")
    private Integer isRead;
    
    @TableField(exist = false)
    private String creatorName;
    
    @TableField(exist = false)
    private List<Long> recipientIds;
}
